package com.silence.gmall.web.feign;

import com.silence.gmall.base.Result;
import com.silence.gmall.web.vo.res.CategoryResVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author silence
 * @Date 2025-08-26 15:55
 * @Email 792245022@qq.com
 * @Version 1.0
 * @Description // @FeignClient("gmall-product") 当前接口是远程调用 gmall-product 服务的 feign 客户端
 */
@Component
@FeignClient(name = "gmall-product", path = "/api/inner/product")
public interface CategoryFeignClient {

    @GetMapping("/category/tree")
    Result<List<CategoryResVo>> getCategoryTree();

}
